package com.kk.springmvc.demo.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.kk.springmvc.demo.service.IHelloService;

/**
* HelloService.java
* 类说明 TODO
*
* @author chengkai
* @date  2017年6月8日 下午8:08:56
*/
@Service
public class HelloServiceImpl implements IHelloService {

    @Value("${config.a}")
    private String config;
    
    @Override
    public Map<String, Object> hello(Map<String, String> param) {
        Map<String, Object> result = new HashMap<>();
        result.put("result1", "result1");
        result.put("result2", "result2");
        return result;
    }
    
    public String value() {
        return this.config;
    }

}
